namespace ScienceNET.ImageProcessing
{
    public partial class ImageProcessing
    {
        static public void Invert(ref double[,] image)
        {
            for (int y = 0; y < image.GetLength(0); y++)
                for (int x = 0; x < image.GetLength(1); x++)
                    image[y, x] = 1.0 - image[y, x];
        }
    
    }
}